import request from '@/pages/api/request.js';
// 用户修改
function userUpdate(data){
	return request({
		method: "POST",
		url: 'user/update',
		data: data
	})
}
//用户登录
function userLogin(data){
	return request({
		method: "POST",
		url: 'user/login',
		data: data
	})
}
//发送验证码
function sendCode(data){
	return request({
		method: "POST",
		url: 'user/sendcode',
		data: data
	})
}
function register(data){
	return request({
		method: "POST",
		url: 'user/register',
		data: data
	})
}
//检测验证码是否正确
function checkcode(data){
	return request({
		method: "POST",
		url: 'user/checkcode',
		data: data
	})
}
export default{
	userUpdate,
	userLogin,
	sendCode,
	register,
	checkcode,
}